#import "RiddleMotionCell.h"


@implementation RiddleMotionCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self laughCactusMelodicSetupViews];
	}
	return self;
}

- (void)setRadianceEnigmaWindfall:(RiddleMotionModel *)radianceEnigmaWindfall {
	_radianceEnigmaWindfall = radianceEnigmaWindfall;

	//: 配置cell的UI

}
- (UITextView *)thriveTextView {
	if (!_thriveTextView) {
	
        _thriveTextView = [[UITextView alloc] initWithFrame:CGRectZero];
        _thriveTextView.frame = CGRectMake(37, 30, 61, 49);
	}
	return _thriveTextView;
}

- (UITextField *)unityFlowHammerTextField {
	if (!_unityFlowHammerTextField) {
	
        _unityFlowHammerTextField = [[UITextField alloc] init];
	}
	return _unityFlowHammerTextField;
}

- (void)laughCactusMelodicSetupViews {
	//: 描述_0
	[self.contentView addSubview:self.thriveTextView];

	//: 描述_1
	[self.contentView addSubview:self.unityFlowHammerTextField];
	[self.unityFlowHammerTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(199);
		make.height.mas_equalTo(91);
		make.bottom.equalTo(@(26));
	}];


    //: 描述_2
    UIView *clarityXenophobeMarvel = [[UIView alloc] initWithFrame:CGRectZero];
    clarityXenophobeMarvel.frame = CGRectMake(9, 11, 66, 153);
    self.flourishEclipseUnwindView = clarityXenophobeMarvel;
    [self.contentView addSubview:clarityXenophobeMarvel];


    //: 描述_3
    UITextField *vortexCirculate = [UITextField new];
    self.yonderNightfallVolatileTextField = vortexCirculate;
    [self.contentView addSubview:vortexCirculate];
	[self.yonderNightfallVolatileTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(33);
		make.height.mas_equalTo(182);
		make.top.equalTo(@(25));
	}];


    //: 描述_4
    UIView *harbingerTonic = [UIView new];
    self.brillianceView = harbingerTonic;
    [self.contentView addSubview:harbingerTonic];
	[self.brillianceView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(178);
		make.height.mas_equalTo(156);
		make.bottom.equalTo(@(18));
	}];


    //: 描述_5
    self.xylophoneLabel = [UILabel new];
    self.xylophoneLabel.text = @"label_5";
    self.xylophoneLabel.font = [UIFont systemFontOfSize:17 weight:UIFontWeightMedium];
    self.xylophoneLabel.textColor = [UIColor colorWithRed:122/255.0 green:130/255.0 blue:33/255.0 alpha:0.8];
    self.xylophoneLabel.textAlignment = NSTextAlignmentCenter;
    //: 不用理会的骚操作 = self.xylophoneLabel.numberOfLines = 1;
    NSInteger anticipateConquerElevate = 1;
    if (anticipateConquerElevate>55 && anticipateConquerElevate < 1842) {
	    anticipateConquerElevate = 89;
    }
    self.xylophoneLabel.numberOfLines = anticipateConquerElevate;
    [self.contentView addSubview:self.xylophoneLabel];
	[self.xylophoneLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(190);
		make.height.mas_equalTo(101);
		make.top.equalTo(@(24));
	}];
}


@end